package com.clothing.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.clothing.dao.LeaveMessageDao;
import com.clothing.entity.LeaveMessage;
import com.clothing.service.LeaveMessageService;
import com.clothing.utils.page.Page;
import com.clothing.utils.page.Pageable;

/**
 * @ClassName: LeaveMessageServiceImpl 
 * @Description: TODO(Service) 
 * @author Charles.Tao 
 * @date 2017年9月6日 下午3:43:34 
 * @version 1.0
 */
@Service
public class LeaveMessageServiceImpl extends BaseServiceImpl<LeaveMessage, Long> implements LeaveMessageService
{
    @Autowired
    private LeaveMessageDao leaveMessageDao;
    
    @Override
    public Page<LeaveMessage> findPageByUser(Long userId, Pageable pageable)
    {
        return leaveMessageDao.findPageByUser(userId, pageable);
    }

    @Override
    public LeaveMessage findOne(Long userOne, Long userTwo)
    {
        return leaveMessageDao.findOne(userOne, userTwo);
    }
}
